/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package wallythewatermelon;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

/**
 *
 * @author matthewweidman
 */
public class MouseDetector implements MouseListener {

    @Override
    public void mouseClicked(MouseEvent e) {
        if (DrawMenu_Main.startbutton.isClicked(e)) {
            Button_Start.onClicked();
        } else if (Level.pausebutton.isClicked(e)) {
            Button_Pause.onClicked();
        } else if (DrawMenu_Pause.br.isClicked(e)) {
            Button_Resume.onClicked();
        }
        e.consume();
    }

    @Override
    public void mousePressed(MouseEvent e) {
        e.consume();
    }

    @Override
    public void mouseReleased(MouseEvent e) {
        e.consume();
    }

    @Override
    public void mouseEntered(MouseEvent e) {
        e.consume();
    }

    @Override
    public void mouseExited(MouseEvent e) {
        e.consume();
    }
    
}
